package com.szeldon.declatest.exec.events;

import java.util.Date;

/**
 * Event for start of execution of scenario's "If" part.
 * 
 * @author szeldon
 * 
 */
public class IfConditionEvaluationStartExecEvent extends TestSuiteExecEvent {

    private String left;
    private String operator;
    private String right;
    private String ifDescription;

    /**
     * 
     * @param scenarioId
     * @param eventDescription
     * @param eventDate
     * @param left
     * @param operator
     * @param right
     * @param ifDescription
     */
    public IfConditionEvaluationStartExecEvent(String scenarioId, String eventDescription, Date eventDate, String left,
            String operator, String right, String ifDescription) {
        super(scenarioId, eventDescription, eventDate);
        this.left = left;
        this.operator = operator;
        this.right = right;
        this.ifDescription = ifDescription;
    }

    public String getLeft() {
        return left;
    }

    public String getOperator() {
        return operator;
    }

    public String getRight() {
        return right;
    }

    public String getIfDescription() {
        return ifDescription;
    }

    @Override
    public String toString() {
        return "IfConditionStartExecEvent [" + super.toString() + "evaluatedLeft=" + left + "; operator=" + operator
                + "; right=" + right + "; ifDescription=" + ifDescription + "]";
    }
}
